﻿using System;

namespace Aludra.Core.Models
{
    public class MonsterCard : ICard
    {
        #region ICard Memebers
        public string Id
        {
            get;
            protected set;
        }

        public string Name
        {
            get;
            protected set;
        }

        public CardType Type
        {
            get;
            set;
        }

        public string Description
        {
            get;
            protected set;
        }

        public Func<object> Execute
        {
            get;
            set;
        }

        public Func<bool> CanExecute
        {
            get;
            set;
        }

        #endregion

        #region Monster Card Members
        public CardAttribute Attribute
        {
            get;
            set;
        }

        public int Level
        {
            get;
            set;
        }

        public int Rank
        {
            get;
            set;
        }

        public MonsterType MonsterType
        {
            get;
            set;
        }

        public int Attack
        {
            get;
            set;
        }

        public int Defense
        {
            get;
            set;
        }

        public MonsterCategory MonsterCategory
        {
            get;
            set;
        }

        public MonsterEffectType MonsterEffectType
        {
            get;
            set;
        }

        #endregion

        public MonsterCard(string id, string name, string description)
        {
            this.Id = id;
            this.Name = name;
            this.Description = description;
            this.Type = CardType.Monster;
            this.Execute = () => null;
            this.CanExecute = ()=> true;
        }
    }
}
